package com.ftg.learn.controller;

import com.ftg.learn.service.AuthCenterService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 布衣
 */
@RestController
public class AuthCenter {

    @Resource
    AuthCenterService authCenterService;

    @GetMapping("/demo")
    public String demo() {
        return authCenterService.getUsername();
    }

}
